using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class StockTakingConfiguration : EntityTypeConfiguration<StockTaking>
    {
        public StockTakingConfiguration()
        {
            Property(g => g.StockTakingID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.Ended).IsOptional();
            Property(g => g.Started).IsOptional();
            Property(g => g.StockTakingNumber).IsOptional();
            Property(g => g.StockTakingType).IsOptional();
        }
    }
}
